package com.eiss.util;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import com.eiss.constants.ExperssOrderConstants;

public class ExperssOrderUtil {
    public static String getExpressOrder() {
        Snowflake snowflake = IdUtil.getSnowflake(ExperssOrderConstants.Experss_WorkerId, ExperssOrderConstants.Experss_DatacenterId);
        // 生成ID
        long id = snowflake.nextId();
        return String.valueOf(id);
    }
}
